/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EffectType;

import Thing.Effect;
import javax.microedition.lcdui.Image;

/**
 *
 * @author THINH
 */
public class Explode extends Effect{
    //field
    
    //constructor
    public Explode(){
        super();
    }
    public Explode( int x, int y,int[]frameSequence){        
        super("/resource/explode.png", 90, 90, frameSequence);   
        setPos(x, y);
    }
    //main func
    public void update(){
        //code here
        if(sprite.getFrame()==sprite.getFrameSequenceLength()-2){
            isLive = false;
        }
        super.update();        
    }
    //func
}
